home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / processes / mp threaded sort / preferences.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.9 KB  |  70 lines

  1. /*
  2.     File:        Preferences.h
  3.  
  4.     Contains:    Application-specific preferences format.
  5.  
  6.     Written by: Dave Falkenburg    
  7.  
  8.     Copyright:    Copyright © 1993-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 7/27/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23. #ifndef    _PREFERENCES_
  24. #define    _PREFERENCES_
  25.  
  26. #define    kCurrentPrefsTag        'drf '
  27. #define    kCurrentPrefsVersion    0
  28.  
  29. #define    kPrefResType            'pref'
  30. #define    kPrefsResID                0
  31.  
  32.  
  33. #ifndef    __OCESTANDARDMAIL__
  34. #include <OCEStandardMail.h>
  35. #endif
  36.  
  37. //    AOCE-specific preferences.
  38. //    TMailableWindow makes use of this structure, and it must be accessible
  39. //    via gPreferences.fMailPreferences
  40.  
  41. typedef struct MailPreferences    MailPreferences;
  42. struct MailPreferences
  43.     {
  44.     SMPCloseOptions fSMPCloseOptions;
  45.     SMPSendOptions    fSMPSendOptions;
  46.     SMPSendFormat    fSMPSendFormat;
  47.     Boolean            fCreateMailerForNewDocuments;
  48.     Boolean            fExpandMailerForNewLetter;
  49.     Boolean            fExpandMailerForOpenedLetter;
  50.     Boolean            fUseCloseOptionsDialog;
  51.     Boolean            fCloseLetterAfterSend;
  52.     };
  53.  
  54.  
  55. //    Application specific preferences structure.
  56. //    NOTE: gPreferences.fMailPreferences is required to exist if MailableWindows are used
  57.  
  58. typedef struct AppPreferences    AppPreferences;
  59. struct AppPreferences
  60.     {
  61.     OSType                fPreferencesTag;
  62.     unsigned long        fPreferencesVersion;
  63.     
  64.     MailPreferences        fMailPreferences;        //    required if MailableWindow is used
  65.     };
  66.  
  67. extern AppPreferences    gPreferences;
  68.  
  69. #endif
  70.